// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import axios from 'axios'

// 配置请求的根路径
axios.defaults.baseURL = 'http://127.0.0.1:8888/api/private/v1/'

// 请求拦截器  (预处理)
  // axios.interceptors.request.use(config=>{


  //   config.headers.Authorization = window.sessionStorage.getItem('token')
  //   // 在最后必须return config
  //   return config
  // })
Vue.prototype.$http = axios

Vue.use(ElementUI);
Vue.config.productionTip = false
 
import './assets/css/global.css'
// import './assets/css/style.less'
// import './assets/css/style.scss'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App),
  components: { App },
  template: '<App/>'
})
